package com.go.where.manager.dao;

import java.util.List;

import com.go.where.manager.pojo.BannerInfo;

/**
 * banner信息dao
 * 
 * @author java
 * 
 */
public interface BannerDao extends BaseDao<BannerInfo> {

	/**
	 * 根据banner位置和对应模块查询
	 * 
	 * @param bannerOrder
	 * @param belong
	 * @return
	 */
	public BannerInfo queryByOrderAndBelong(BannerInfo bannerInfo);
	
	public List<BannerInfo> queryByBelong(BannerInfo bannerInfo);

	/**
	 * 根据banner位置和对应模块删除信息
	 * 
	 * @param bannerOrder
	 * @param belong
	 * @return
	 */
	public int deleteByOrderAndBelong(BannerInfo bannerInfo);
}
